/*
Borealis Library
A library of commonly used hydrological modeling building blocks

Copyright (C) 2008  Chris Marsh

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef ARCASCIIFILE_UNITTEST_H
#define ARCASCIIFILE_UNITTEST_H

/*
Borealis Unit Test

Created: 16 - June - 2008
(c) Chris Marsh

Unit test to test the Arc Gis ascii file
*/


#include <exception>
#include <cppunit\extensions\HelperMacros.h>

#include <borealis\Borealis.hpp>


class AsciiRasterTest : public CppUnit::TestFixture
{

	CPPUNIT_TEST_SUITE(AsciiRasterTest);
	CPPUNIT_TEST(TestOpenFromFile);
	CPPUNIT_TEST(TestScaleBy);
	CPPUNIT_TEST(TestCopyAndAssignment);

	CPPUNIT_TEST_EXCEPTION(TestRasterAtThrow,std::runtime_error);
	CPPUNIT_TEST_EXCEPTION(TestSaveToFileThrow,std::runtime_error);
	CPPUNIT_TEST_EXCEPTION(TestSaveToXYZThrow,std::runtime_error);
	CPPUNIT_TEST_EXCEPTION(TestOpenFromFileThrow,std::runtime_error);


	CPPUNIT_TEST_SUITE_END();

private:

public:
	void setUp();
	void tearDown();
	

	void TestCopyAndAssignment();
	void TestOpenFromFile();
	void TestRasterAtThrow();
	void TestSaveToFileThrow();
	void TestSaveToXYZThrow();
	void TestOpenFromFileThrow();
	void TestScaleBy();



};

#endif